from flask_script import Manager
from flask_migrate import  MigrateCommand

from info import create_app

app = create_app('dev')
# 初始化脚本启动
msg = Manager(app)
# 管理器生成迁移命令
msg.add_command('mc', MigrateCommand)

if __name__ == '__main__':
    app.logger.info('start 8080 ...')

    msg.run()